package helpers;

public class StringHelpers {
	public static CharSequence makePrettyShorterString(CharSequence content, int desiredLength, CharSequence endingString) {
		if(content.length() <= desiredLength)
			return content;
		
		StringBuilder builder = new StringBuilder();
		builder.append(content.subSequence(0, desiredLength - endingString.length()));
		builder.append(endingString);
		
		return builder.toString();
	}
}
